<?php
namespace app\index\controller;
class Sign extends Base
{
    
    public function lists(){
        return '<h1>稍后开放，请耐心等待....</h1>';
        /*
    	//入参
    	$uuid = input('uuid');

    	//获取用户信息
    	$user = Db::name( "user" )->where( 'uuid' , $uuid )->find();

    	//获取用户昨天的签到信息
    	$addtime = strtotime( date( "Y-m-d",strtotime("-1 day") ) );
		$user_signin = Db::name( "user_signin" )->where( 'addtime' , $addtime )->find();

		//昨天没有签到
		if( !$user_signin ){

			$data = array();
			$data['user_id'] 		= $user['id'];
			$data['signin_points']	= c('type.signin_points', 0 );
			$data['sum']			= 1;
			$data['addtime']		= time();
			Db::name('user_signin')->insertGetId($data);

			$msg = "签到成功，本次签到获得".c('type.signin_points', 0 )."积分";

		}

		//昨天有签到
		if( $user_signin ){

			$data = array();
			$data['user_id'] 		= $user['id'];
			$data['signin_points']	= c('type.signin_points', $user_signin['sum'] );
			$data['sum']			= (int)$user_signin['sum'] + 1;
			$data['addtime']		= time();
			Db::name('user_signin')->insertGetId($data);

			$msg = "签到成功，已连续签到".(int)$user_signin['sum'] + 1."天，本次签到获得".c('type.signin_points', 0 )."积分";

		}
		*/
    }
}
